-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: create coupon code via Magento REST api #45
feat: create coupon code via Magento REST api #45
Conversation
Love it! But why the insanely high timeout of 100000? |
Good question! I copied the What would be a better timeout? Might make sense to set this to the same value for all requests in the file? ( |
@kolaente I think you can just remove it, so it will use the default timeout set in Cypress (5000 by default). Unless there's a specific (and valid) reason to raise it, just leave it at the default. |
Done! |
I still see timeouts in the commit? |
Looks like I forgot one, whoops. Should I also remove the ones which were already present in the other commands? |
Gotcha, I've removed all of them. |
I realized now some of those weren't yours, haha. Thanks! :) |
This PR adds a method to the REST API helper to create random coupon codes on the fly during a test.
Use it like this:
I'll do a follow-up PR to add this to the tests.